package cn.itcast.service.company.impl;

import cn.itcast.dao.company.CompanyDao;
import cn.itcast.domain.company.Company;
import cn.itcast.service.company.CompanyService;

import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service//注册中心
public class CompanyServiceImpl implements CompanyService{

    @Autowired/*ioc中基于动态接口生成的对象*/
    private CompanyDao companyDao;

    @Override
    public void save(Company company) {
        companyDao.save(company);
    }
}
